﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace DongFangGuoKai.WMSPlatform.Core.Migrations
{
    public partial class M18 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "BillId",
                table: "t_QueceRecard");

            migrationBuilder.AddColumn<int>(
                name: "BussinessId",
                table: "t_QueceRecard",
                type: "int",
                nullable: false,
                defaultValue: 0,
                comment: "业务类型");

            migrationBuilder.AddColumn<string>(
                name: "BussinessName",
                table: "t_QueceRecard",
                type: "varchar(50)",
                unicode: false,
                maxLength: 50,
                nullable: true,
                comment: "业务名称");

            migrationBuilder.AddColumn<string>(
                name: "Msg",
                table: "t_QueceRecard",
                type: "varchar(200)",
                unicode: false,
                maxLength: 200,
                nullable: true,
                comment: "备注");

            migrationBuilder.AddColumn<int>(
                name: "Status",
                table: "t_QueceRecard",
                type: "int",
                nullable: false,
                defaultValueSql: "((0))",
                comment: "状态");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "BussinessId",
                table: "t_QueceRecard");

            migrationBuilder.DropColumn(
                name: "BussinessName",
                table: "t_QueceRecard");

            migrationBuilder.DropColumn(
                name: "Msg",
                table: "t_QueceRecard");

            migrationBuilder.DropColumn(
                name: "Status",
                table: "t_QueceRecard");

            migrationBuilder.AddColumn<int>(
                name: "BillId",
                table: "t_QueceRecard",
                type: "int",
                nullable: false,
                defaultValue: 0,
                comment: "收货单ID");
        }
    }
}
